package com.abbcc.models;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "p_user")
public class TdUser {
	private int userId;
	private String username;
	private String password;
	private String state;
	private Date addTime;
	private Date loginTime;
	private String email;
	private String name;
	private String position;
	private String address;
	private String qq;
	private String phone;
	private String cellphone;
	private String sex;
	private String toWrite;
	private String toUpdate;
	private String toDelete;
	@Id 
	@Column(name="user_id") 
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	@Column(name = "login_time")
	public Date getLoginTime() {
		return loginTime;
	}
	public void setLoginTime(Date loginTime) {
		this.loginTime = loginTime;
	}
	@Column(name = "add_time")
	public Date getAddTime() {
		return addTime;
	}
	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPosition() {
		return position;
	}
	public void setPosition(String position) {
		this.position = position;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getQq() {
		return qq;
	}
	public void setQq(String qq) {
		this.qq = qq;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getCellphone() {
		return cellphone;
	}
	public void setCellphone(String cellphone) {
		this.cellphone = cellphone;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	@Column(name="to_write")
	public String getToWrite() {
		return toWrite;
	}
	public void setToWrite(String toWrite) {
		this.toWrite = toWrite;
	}
	@Column(name="to_update")
	public String getToUpdate() {
		return toUpdate;
	}
	public void setToUpdate(String toUpdate) {
		this.toUpdate = toUpdate;
	}
	@Column(name="to_delete")
	public String getToDelete() {
		return toDelete;
	}
	public void setToDelete(String toDelete) {
		this.toDelete = toDelete;
	}
	
	

}
